
<script type="text/javascript">
	if (window != top)
		top.location.href = location.href;
</script>
<%   
String path = request.getContextPath();   
// 获得项目完全路径（假设你的项目叫MyApp，那么获得到的地址就是 http://localhost:8080/MyApp/）:   
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;   
%> 
<%@page contentType="text/html;charset=utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@taglib uri="/struts-tags" prefix="s"%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>窝蜂互联网</title>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #1D3647;
}

.verror {
	color: red;
	font-size: 13px;
}
-->
</style>

<script type="text/javascript" src="js/jquery-1.7.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.js"></script>

<link href="css/skin.css" rel="stylesheet" type="text/css">
<body>
	<table width="100%" height="166" border="0" cellpadding="0"
		cellspacing="0">
		<tr>
			<td height="42" valign="top"><table width="100%" height="42"
					border="0" cellpadding="0" cellspacing="0" class="login_top_bg">
					<tr>
						<td width="1%" height="21">&nbsp;</td>
						<td height="42">&nbsp;</td>
						<td width="17%">&nbsp;</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="top"><table width="100%" height="532" border="0"
					cellpadding="0" cellspacing="0" class="login_bg">
					<tr>
						<td width="49%" align="right"><table width="91%" height="532"
								border="0" cellpadding="0" cellspacing="0" class="login_bg2">
								<tr>
									<td height="138" valign="top"><table width="89%"
											height="427" border="0" cellpadding="0" cellspacing="0">
											<tr>
												<td height="149">&nbsp;</td>
											</tr>
											<tr>
												<td height="80" align="right" valign="top"><img
													src="images/logo2.png" width="279" height="68">
												</td>
											</tr>
											<tr>
												<td height="198" align="right" valign="top"><table
														width="100%" border="0" cellpadding="0" cellspacing="0">
														<tr>
															<td width="35%">&nbsp;</td>
															<td height="25" colspan="2" class="left_txt"><p>1-
																	每个IT人都有自己梦想</p>
															</td>
														</tr>
														<tr>
															<td>&nbsp;</td>
															<td height="25" colspan="2" class="left_txt"><p>2-
																	开启移动互联网之门...</p>
															</td>
														</tr>
														<tr>
															<td>&nbsp;</td>
															<td height="25" colspan="2" class="left_txt"><p>3-
																	强大的后台系统，业务管理易如反掌...</p>
															</td>
														</tr>
														<tr>
															<td>&nbsp;</td>
															<td width="30%" height="40"><img
																src="images/icon-demo.gif" width="16" height="16"><a
																href="desc.html" target="_blank" class="left_txt3">
																	使用说明</a></td>
															<td width="35%"><img
																src="images/icon-login-seaver.gif" width="16"
																height="16"> <a target="_blank"
																href="http://sighttp.qq.com/authd?IDKEY=68f604ae6f809699ab5cb3050cad0a664230e0b0a531ed44"><img
																	border="0"
																	src="http://wpa.qq.com/imgd?IDKEY=68f604ae6f809699ab5cb3050cad0a664230e0b0a531ed44&pic=41"
																	alt="点击这里给我发消息" title="点击这里给我发消息">
															</a></td>
														</tr>
													</table>
												</td>
											</tr>
										</table>
									</td>
								</tr>

							</table>
						</td>
						<td width="1%">&nbsp;</td>
						<td width="50%" valign="bottom"><table width="100%"
								height="59" border="0" align="center" cellpadding="0"
								cellspacing="0">
								<tr>
									<td width="4%">&nbsp;</td>
									<td width="96%" height="38"><span class="login_txt_bt">登陆窝蜂综合管理平台</span>
									</td>
								</tr>
								<tr>
									<td>&nbsp;</td>
									<td height="21"><table cellSpacing="0" cellPadding="0"
											width="100%" border="0" id="table211" height="328">
											<tr>
												<td height="164" colspan="2" align="middle">

													<form name="loginForm" id="loginForm"
														action="<%=basePath%>/j_spring_security_check" method="post">
														<table cellSpacing="0" cellPadding="0" width="100%"
															border="0" height="143" id="table212">
															<tr>
																<td width="13%" height="38" class="top_hui_text"><span
																	class="login_txt">管理员：&nbsp;&nbsp; </span>
																</td>
																<td height="38" colspan="2" class="top_hui_text"><input
																	name="j_username" id="username" class="editbox4"
																	value="" size="20"><span class="verror"></span>
																</td>
															</tr>
															<tr>
																<td width="13%" height="35" class="top_hui_text"><span
																	class="login_txt"> 密 码： &nbsp;&nbsp; </span>
																</td>
																<td height="35" colspan="2" class="top_hui_text"><input
																	class="editbox4" type="password" size="20"
																	name="j_password" id="password"> <img
																	src="images/luck.gif" width="19" height="18"><span
																	class="verror"></span></td>
															</tr>
															<tr>
																<td width="13%" height="35"><span class="login_txt">验证码：</span>
																</td>
																<td height="35" colspan="2" class="top_hui_text"><input
																	class=wenbenkuang name="verifycode" id="verifycode"
																	type="text" value="" maxLength=4 size=10> <img
																	src="image.jsp" width="75px" height="25px"
																	onclick="update(this)"
																	style="margin-bottom: -5px; cursor: pointer;" /> <span
																	class="verror"></span></td>
															</tr>
															<tr>
																<td height="35">&nbsp;</td>
																<td width="20%" height="35"><input name="Submit"
																	type="submit" class="button" id="Submit" value="登 陆">
																</td>
																<td width="67%" class="top_hui_text"><input
																	type="reset" class="button" value="重 置">
																</td>
															</tr>
														</table>
														<br>
													</form></td>
											</tr>
											<tr>
												<td width="433" height="164" align="right" valign="bottom"><img
													src="images/login-wel.gif" width="242" height="138">
												</td>
												<td width="57" align="right" valign="bottom">&nbsp;</td>
											</tr>
										</table>
									</td>
								</tr>
							</table></td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td height="20"><table width="100%" border="0" cellspacing="0"
					cellpadding="0" class="login-buttom-bg">
					<tr>
						<td align="center"><span class="login-buttom-txt">Copyright
								&copy; 北京窝蜂互联网工作室 www.wooophone.com</span>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
	<div style="display: none;" id="message"
		class="error ${param.error == true ? '' : 'hide'}">
		${sessionScope['SPRING_SECURITY_LAST_EXCEPTION'].message}</div>
</body>


<script type="text/javascript">
	var message = document.getElementById("message").innerHTML;
	message = message.replace(/\s+/g, "");
	if (message != null && message != "") {
		alert(message);
	}

	function update(obj) {
		obj.src = "image.jsp";
	}

	$().ready(function() {

		$("#loginForm").validate({
			errorPlacement : function(error, element) {
				element.parent().find(".verror").html(error);
			},
			rules : {
				"j_username" : {
					required : true,
				},
				"j_password" : {
					required : true,
					maxlength : 20,
					minlength : 6
				},
				"verifycode" : {
					required : true,
					maxlength : 4
				},
			},
			messages : {
				"j_username" : {
					required : " >> * 请输入用户名",
				},
				"j_password" : {
					required : " >> * 请输入密码",
					maxlength : " >> 最大长度不得超过20",
					minlength : " >> 最小长度不得小于6"
				},
				"verifycode" : {
					required : "请输入验证码"
				}
			}
		});
	});
</script>

</head>
</html>